<?php
//Här kör vi alla automatiska tester (även de delar vi återanvänder från laboration 1
class TestAll {
	private $memberDAL;
	private $loginHandler;
	private $memberView;
	private $memberHandler;
	private $loginController;
	
	public function __construct ($memberDAL, $loginHandler, $memberView, $memberHandler, $loginController){
		$this->memberDAL = $memberDAL;
		$this->loginHandler = $loginHandler;
		$this->memberView = $memberView;
		$this->memberHandler = $memberHandler;
		$this->loginController = $loginController;
	}

	public function TestAll() {
		$text = "";
		
		//Skapar instanser av klasserna
		//$FileUploadView = new FileUploadView();

		$FileUploaderHandler = new FileuploadHandler();

		$FileUploadController = new FileUploadController();

		$text = "";
		
		//Lägger returvärdet från testerna i $text
		//$text .= $FileUploadView -> TestFileUploadView();
		
		//$text .= $FileUploaderHandler->TestFileUploadHandler();
		$text .= $this->loginHandler->TestLoginHandler();
		//$text .= $FileUploadController -> TestFileUploadController();
		$text .= $this->loginController->TestLoginController();
		
		return $text;
	}

}
